package Test;
class Account{
	private volatile int balance;
	
	
	
	public Account(int balance) {
		super();
		this.balance = balance;
	}
	
	
	public int getBalance() {
		return balance;
	}


	public void setBalance(int balance) {
		this.balance = balance;
	}


	synchronized void  deposit(int money) {
		balance+=money;
	}
	synchronized void withdraw(int money) {
		balance-=money;
	}
}
public class Main4 {

	

}
